﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DH.Core.Helper
{
   public  enum DbTypeEnum
    {
         SqlServer,
         MySql,
         SqLite,
         Oracle,
         Npgsql
    }

    public enum ORMTypeEnum
    {
         EF,
         Chole,
         Dapper,
         AdoDotNet
    }

    public enum ResultTypeEnum
    {
        /// <summary>
        /// 消息结果类型
        /// </summary>
        info=0,
        /// <summary>
        /// 成功结果类型
        /// </summary>
        success=200,
        /// <summary>
        /// 警告结果类型
        /// </summary>
        warning=102,
        /// <summary>
        /// 异常结果类型
        /// </summary>
        error=500
    }
    public enum ResultStatusEnum
    {
        OK = 200,
        Failed = 500,
        Unauthorized = 401,
        NotFound=404
    }

    public enum EntryState
    {
        Detached = 1,
        Unchanged = 2,
        Added = 4,
        Deleted = 8,
        Modified = 16,
    }
    public enum OrgTypeEnum
    {
        Group=1,
        Company=2,
        Department=3,
        WorkGroup=4,
        User=5
    }

    public enum PrivilegeTypeEnum {
        Role=1,
        Function=2,
        Menu=4,
        User=5
    }
}
